package com.mingzhi.product.mapper;

import com.mingzhi.product.model.ProductInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface ProductMapper {

    /**
     * 根据商品id获取商品信息
     *
     * @param productId 商品id
     * @return
     */
    @Select("select * from product_detail where id = #{id}")
    ProductInfo selectProductById(@Param("id") Integer productId);
}
